package com.example.demo.common;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.List;

@Schema(name = "Paged", description = "分页")
@Data
@AllArgsConstructor
public class  Paged<T> {
    @Schema(name = "total", description = "总数")
    private long total;
    @Schema(name = "data", description = "数据列表")
    List<T> data;
}
